package com.atguigu04.override;

/**
 * ClassName: Student
 * Package: com.atguigu04.override
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/21 16:07
 * @Version 1.0
 */
public class Student extends Person {
    // 属性
//    String name;
//    int age;
    String school;

    // 方法
//    public void eat(){
//        System.out.println("吃饭");
//    }
//    public void sleep(){
//        System.out.println("睡觉");
//    }
    public void study() {
        System.out.println("学习");
    }

    public void show1() {
        System.out.println("age : " + getAge());
    }
}
